package com.blast.comicsisland.model.recommend.recommendhead;

/**
 * Created by dell on 2015/6/24.
 */

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 推荐Recommend下的Info中的字段adlistjson
 */
public class AdListJson {
    //标注 目前获取值为\
    private String cornermark;
    private String id;
    private String targetargument;
    private String targetmethod;
    //重要字段 图片地址
    private String imageurl;

    private String endtime;
    private String starttime;

    //重要字段 标题，名称，描述
    private String title;
    private String name;
    private String description;

    public String getCornermark() {
        return cornermark;
    }

    public void setCornermark(String cornermark) {
        this.cornermark = cornermark;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTargetargument() {
        return targetargument;
    }

    public void setTargetargument(String targetargument) {
        this.targetargument = targetargument;
    }

    public String getTargetmethod() {
        return targetmethod;
    }

    public void setTargetmethod(String targetmethod) {
        this.targetmethod = targetmethod;
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    //------------------------------------>
    //解析部分
    public void jsonParse(JSONObject jsonObject){
        try {
            targetargument = jsonObject.getString("targetargument");
            imageurl = jsonObject.getString("imageurl");

            title = jsonObject.getString("title");

        } catch (JSONException e) {
            e.printStackTrace();
        }


    }

}
